import './assets/main.css'

import { createApp } from 'vue'
import App from './testApp.vue'

// 导入路由
import router from './router';
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconVue from '@element-plus/icons-vue'
import 'animate.css'
// 导入全局路由守卫
import '@/permission'

import 'nprogress/nprogress.css'

// 引入全局状态管理 Pinia
import pinia from "@/stores";
//
import 'viewerjs/dist/viewer.css'
import VueViewer from 'v-viewer'

//createApp(App).mount('#app')
const app = createApp(App)
app.use(router)
app.use(ElementPlus)
app.use(VueViewer)
app.mount('#app')

// 引入图标
for (const [key,component] of Object.entries(ElementPlusIconVue)){
    app.component(key,component)
}


app.use(pinia)
